package org.example.pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 相片表
 * @TableName Photo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Photo implements Serializable {
    /**
     * 自增id
     */
    private Integer id;

    /**
     * 相册分类id
     */
    private Integer albumCategoryId;

    /**
     * 图片的URL
     */
    private String imageUrl;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    /**
     * 相片拍摄地点
     */
    private String location;

    private static final long serialVersionUID = 1L;
}